<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
    <h1>用户登录</h1>
    <form action="/login/" method="post">
      {% csrf_token %}
      <input type="text" name="user" placeholder="用户名">
      <input type="password" name="password" placeholder="密码">
      <input type="submit" value="提交" > {{error}}
    </form>
</body>
</html>